AWS Certified SysOps Administrator Study Guide by Brett McLaughlin & Brett McLaughlin

AWS Certified SysOps Administrator Study Guide by Brett McLaughlin & Brett McLaughlin

Author:Brett McLaughlin & Brett McLaughlin
Language: eng
Format: epub
ISBN: 9781119561521
Publisher: Wiley
Published: 2020-02-14T00:00:00+00:00


Amazon EBS is considered persistent storage. Persistent storage is storage that can survive the termination of the Amazon EC2 instance that it is attached to. If the EBS volume is serving as the root partition on an EC2 instance, you need only ensure that the DeleteOnTermination flag is set to false. This setting can be modified using the AWS CLI. On a Linux system with an SSD identified as sda, you can set the flag to false by running the following command:

aws ec2 modify-instance-attribute --instance-id <instance_id_number> --block-device-mappings "[{\"DeviceName\": \"/dev/sda\", \"Ebs\":{\"DeleteOnTermination\":false}}]"

Interestingly, DeleteOnTermination is set to true by default on the root volume but to false on the other volumes. You will need to remember that when working with Amazon EBS.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.